package server.rest;

public class Session {
	String userid;
	int nextNumber;
	long loginTime;
	
	public Session(String userid)
	{
		this.userid=userid;
		this.nextNumber=0;
		this.loginTime=System.currentTimeMillis();
	}
	
	public int getNextNumber()
	{
		return this.nextNumber++;
	}
	public long getLoginTime()
	{
		return loginTime;
	}
	public String getUserid()
	{
		return userid;
	}
}
